<template>
  <div>
    <el-divider />
    <h4>MG-ADL评分量表</h4>
    <el-form ref="form" :model="form" label-width="100px">
      <el-form-item label="得分">
        <el-input v-model="score" placeholder="请输入内容" style="width:200px" />
      </el-form-item>
      <el-form-item label="言语:">
        <el-radio-group v-model="form.speech">
          <el-radio :label="1">正常</el-radio>
          <el-radio :label="2">间断含糊或鼻音</el-radio>
          <el-radio :label="3">持续含糊或鼻音，可听清</el-radio>
          <el-radio :label="4">不能听清的言语</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="咀嚼:">
        <el-radio-group v-model="form.chew">
          <el-radio :label="1">正常</el-radio>
          <el-radio :label="2">硬食疲劳</el-radio>
          <el-radio :label="3">软食疲劳</el-radio>
          <el-radio :label="4">胃管</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="吞咽:">
        <el-radio-group v-model="form.swallow">
          <el-radio :label="1">正常</el-radio>
          <el-radio :label="2">很少发生呛咳或吞咽困难</el-radio>
          <el-radio :label="3">经常发生吞咽困难或改变饮食</el-radio>
          <el-radio :label="4">胃管</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="呼吸:">
        <el-radio-group v-model="form.breathing">
          <el-radio :label="1">正常</el-radio>
          <el-radio :label="2">活动时气短</el-radio>
          <el-radio :label="3">安静时气短</el-radio>
          <el-radio :label="4">呼吸机</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="刷牙或梳头:">
        <el-radio-group v-model="form.teethHair">
          <el-radio :label="1">正常</el-radio>
          <el-radio :label="2">不需要间断休息</el-radio>
          <el-radio :label="3">需要间断休息</el-radio>
          <el-radio :label="4">不能完成</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="坐立站起">
        <el-radio-group v-model="form.sitUp">
          <el-radio :label="1">正常</el-radio>
          <el-radio :label="2">有时需要上肢辅助</el-radio>
          <el-radio :label="3">通常需要上肢辅助</el-radio>
          <el-radio :label="4">需要别人帮忙</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="复视">
        <el-radio-group v-model="form.diplopia">
          <el-radio :label="1">正常</el-radio>
          <el-radio :label="2">不是每天出现</el-radio>
          <el-radio :label="3">每天出现但不持续</el-radio>
          <el-radio :label="4">持续存在</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="眼睑下垂:">
        <el-radio-group v-model="form.blepharoptosis">
          <el-radio :label="1">正常</el-radio>
          <el-radio :label="2">不是每天出现</el-radio>
          <el-radio :label="3">每天出现但不持续</el-radio>
          <el-radio :label="4">持续存在</el-radio>
        </el-radio-group>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        speech: 1,
        chew: 1,
        swallow: 1,
        breathing: 1,
        teethHair: 1,
        sitUp: 1,
        diplopia: 1,
        blepharoptosis: 1,
        pId: this.pId,
        id: ''
      }
    }
  },
  inject: [
    'pId'
  ],
  computed: {
    score() {
      var sum = Object.values(this.form).reduce((x, y) => x + y)
      return sum
    }
  }
}
</script>

<style>

</style>
